package com.cmwa.solution.sys.attach.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import com.cmwa.solution.sys.attach.dao.AttachRelExtDao;
import com.cmwa.solution.sys.attach.service.AttachRelExtService;

import com.cmwa.solution.sys.attach.entity.AttachRelExtVo;

import java.util.List;
import com.cmwa.solution.base.entity.Page;
import com.cmwa.solution.base.entity.SearchParam;

/**
 * 附件扩展属性表业务实现层
 * 
 * @author ex-chenxh
 * @date 2019-02-15 13:36:34
 */
@Service
public class AttachRelExtServiceImpl implements AttachRelExtService {
	@Resource
	private AttachRelExtDao attachRelExtDao;
	
		
	@Override
	public void insertAttachRelExt(AttachRelExtVo attachRelExt) {
		attachRelExtDao.insertAttachRelExt(attachRelExt);
	}
	
		
		
	@Override
	public void physicDeleteAttachRelExtById(String id) {
		attachRelExtDao.physicDeleteAttachRelExtById(id);
	}
	
		
		
	@Override
	public void logicDeleteAttachRelExtById(String id) {
		attachRelExtDao.logicDeleteAttachRelExtById(id);
	}
	
		
		
	@Override
	public void updateAttachRelExtById(AttachRelExtVo attachRelExt) {
		attachRelExtDao.updateAttachRelExtById(attachRelExt);
	}
	
		
		
	@Override
	public Page<AttachRelExtVo> attachRelExtListPage(SearchParam sp) {
		List<AttachRelExtVo> items = attachRelExtDao.attachRelExtListPage(sp);
		return Page.create(items, sp.getStart(), sp.getLimit(), sp.getTotal());
	}
	
		
		
	@Override
	public AttachRelExtVo getAttachRelExtById(String id) {
		return attachRelExtDao.getAttachRelExtById(id);
	}
	
		
	
}
